
import br.unifor.sd.bolsa.cliente.gui.JFrameCliente;
import br.unifor.sd.bolsa.servidor.gui.JFrameServidor;

import com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Pedro
 */
public class Main {

    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(new NimbusLookAndFeel());
        } catch (UnsupportedLookAndFeelException ex) {
            ex.printStackTrace();
        }

        String[] opts = new String[2];
        opts[0] = "Cliente";
        opts[1] = "Servidor";
        int opt = JOptionPane.showOptionDialog(null, "Cliente ou Servidor? ", "Cliente ou Servidor ? ", JOptionPane.INFORMATION_MESSAGE, JOptionPane.QUESTION_MESSAGE, null, opts, 0);
        if (opt == 0) {
            new JFrameCliente().setVisible(Boolean.TRUE);
        } else if (opt == 1) {
            new JFrameServidor().setVisible(Boolean.TRUE);
        }
    }
}
